from black_cat_demo import BlackCat

xiaohei = BlackCat("黑色","小黑猫","雌","小黑")

print(xiaohei.black_cat_ethic)
xiaohei.black_cat_speak()

# 继承的来自父类Animal的变量和方法
print(xiaohei.ethnic)
# print(xiaohei.__account)  # 无论是单继承还是多继承，多不能继承到父类的私有化变量和私有化方法
xiaohei.speak()
xiaohei.eat()
xiaohei.sleep()
xiaohei.to_String()
xiaohei.interface_demo()

# 继承的来自父类Cat的变量和方法
print(xiaohei.cat_ethnic)
xiaohei.cat_speak()


xiaohei.introduce()